import PIL

path = R'G:\Business documents\PyExer\MakeBookFromKindle1109\MakeBookFromKindle\output_files\01.png'
from PIL import Image
import numpy as np

pt1 = R'G:\ebook-copy\output_files\00.png'
pt2 = R'G:\ebook-copy\output_files\01.png'
img1 = Image.open(pt1)
img2 = Image.open(pt2)
array1 = np.array(img1)
array2 = np.array(img2)
dif = array1 - array2

print(dif)
if np.any(dif != 0):
    print('is not same')
else:
    print('is same')
